<?php

session_cache_expire(999999999);
if (!isset($_SESSION)) {
    session_start();
}
ob_start();
if (isset($_SESSION['role'])) {
    if ($_SESSION['role'] == 2)
        header('Location: home.php');
    if ($_SESSION['role'] == 1)
        header('Location: homeAdmin.php');
    if ($_SESSION['role'] == 3)
        header('Location: partnermanage.php');
}else {
    header('Location: login.php');
}
ob_flush();
?>
